package cc.uncarbon.module.custom.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 后台管理-新增/编辑订单 DTO
 */
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class AdminOrdersInsertOrUpdateDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "主键ID", hidden = true, title = "仅更新时使用")
    private Long id;

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @Size(max = 20, message = "【订单编号】最长20位")
    @NotBlank(message = "订单编号不能为空")
    private String orderNo;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "实际需要支付的价格，单位分，优惠前")
    private BigDecimal price;

    @Schema(description = "实际支付金额")
    private BigDecimal payMoney;

    @Schema(description = "用户代金券id")
    private Long userCouponId;

    @Schema(description = "用户等级")
    private Integer vipLevel;

    @Schema(description = "美容师id")
    private Long staffId;

    @Schema(description = "备注")
    @Size(max = 255, message = "【备注】最长255位")
    private String remark;

    @Schema(description = "状态（0禁用，1正常")
    private EnabledStatusEnum status;

    @Schema(description = "店铺id")
    private Long storeId;

}
